package com.ljy.service.impl;

import com.ljy.dao.Device_Dao;
import com.ljy.pojo.Device;
import com.ljy.service.Device_Service;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Device_impl  implements Device_Service{
    @Resource
    Device_Dao device_dao;


    @Override
    public List<Device> listdevice() throws Exception {
        return device_dao.listdevice();
    }

    @Override
    public Device seldevice(int id) throws Exception {
        return device_dao.seldevice(id);
    }

    @Override
    public int upddevice(int id, int state) throws Exception {
        return device_dao.upddevice(id,state);
    }
}
